<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>注册</title>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/huaweishop/Static/Index/css/login.css"/>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/huaweishop/Static/Index/css/regist.css"/>
		<script src="http://127.0.0.1/huaweishop/Static/Index/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="http://127.0.0.1/huaweishop/Static/Index/js/registtab.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/huaweishop/Static/hdjs/hdjs.css"/>
		<script src="http://127.0.0.1/huaweishop/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
	$(function(){
		 $('#regForm').validate({
             username:{
	                rule: {
	                    required: true,
	                    email: true,
	                    ajax:{url:'<?php echo U("Member/ajaxUser");?>'}
	                },
	                error: {
	                    required: '邮箱不能为空',
	                    email: '邮箱不正确'
	                },
	                success: '输入正确',
	                message: '请输入邮箱'
	            },
             password_:{

                rule: {
                    required: true,
                    minlen:6,
                    maxlen:32
                },

                error: {
                    required: '密码不能为空',
                    minlen:'密码不得少于8位',
                    maxlen:'密码不得少于32位'
                },

                success: '验证通过',

                message: '请输入密码'
            },
            password_new1 :{

                rule: {
                    required: true,
                    confirm:'password_'
                },

                error: {
                    required: '密码不能为空',
                    confirm:'两次不一样'
                },

                success: '验证通过',
                message: '请再次输入密码'
            },
            code1:{

                rule: {
                    required: true,
                    ajax:{url:'<?php echo U("Member/ajaxCode");?>'}
                },

                error: {
                    required: '验证码不能为空',
                },

                success: '验证通过',

                message: '请输入验证码'
            },
		
		});
		
	})
</script>
	</head>
	<body class="bgr">
		<div id="logo">
			<div class="left">
				<img src="http://127.0.0.1/huaweishop/Static/Index/images/logo2.png"/>
			</div>
			<div class="center">
				<img src="http://127.0.0.1/huaweishop/Static/Index/images/split1.png"/>
			</div>
			<div class="right">
				华为商城
			</div>
		</div>
        
        <div id="regist_title">
        	<div class="tel">
        		<a href=" javascript:;">手机号码注册</a>
        	</div>
        	<div class="email">
        		<a href="javascript:;">电子邮箱注册</a>
        	</div>
        </div>        	
        <!--邮箱注册开始-->
        <div id="regist_con">
        	<h1>注册华为账号</h1>
        	<form action="<?php echo U('Member/regist');?>" id="regForm" class="regist_email em" method="post">
        		邮箱：<input type="text" name="username" class="email" placeholder="请输入正确邮箱格式" />
        		<br />
        		密码：<input type="password" name="password_" class="pwd" placeholder="8~32个字符" />
        		<div class="test">
        			<span>弱</span>
        			<span>中</span>
        			<span>强</span>
        		</div><br />
        		<div style="margin-left: -18px;">
        			确认密码：<input type="password" placeholder="请重复您的密码" name="password_new1" class="npwd" />
        		</div><br />
        		<div style="float: left;">验证码： <input type="text" placeholder="不区分大小写"   name="code1" class="code" /></div><img src="<?php echo U('Member/code');?>" onclick="this.src=this.src + '&' + Math.random()" /><br />
        		<div style="margin-left: 50px; margin-top: 20px;"><input type="checkbox" name="" id="agreen" /> <label for="agreen">同意</label><a href=""> 《华为帐号服务条款、华为隐私政策》</a></div>
        		<input class="btn" type="submit" value="立即注册"/> 已有账号 <a href="<?php echo U('Member/login');?>">登陆</a>
        	</form>
            <!--邮箱注册结束-->
            <!--手机注册开始-->
            <form action="" class="ds regist_email te" method="post">
        		<div style="margin-left: -20px; margin-top: 20px;">
        			手机号码： <select name="">
        			<option value="">中国（+86）</option>
        		</select> <input type="text" name="number" class="number" placeholder="5~50个字符" />
        		</div>
        		<br />
        		<div style="float: left;">验证码： <input type="text" placeholder="不区分大小写" name="code" class="code" /><input type="button" id="" value="获取短信验证码" /></div>
        		<div style="clear: both;">
        			
        		</div>
        		<br />
        		密码：<input type="text" name="password" class="pwd" placeholder="8~32个字符" />
        		<div class="test">
        			<span>弱</span>
        			<span>中</span>
        			<span>强</span>
        		</div><br />
        		<div style="margin-left: -18px;">确认密码：<input type="text" placeholder="请重复您的密码" name="password_new" class="npwd" /></div><br />
        		
        		<div style="margin-left: 50px; margin-top: 20px;"><input type="checkbox" name="" id="agreen" /> <label for="agreen">同意</label><a href=""> 《华为帐号服务条款、华为隐私政策》</a></div>
        		<input class="btn" type="submit" value="立即注册"/> 已有账号 <a href="">登陆</a>
        	</form>
         <!--手机注册结束-->
        </div>
        

        <!--底部-->
		<div id="foot">
			<div class="kx">
				
			</div>
			<div class="footcon">
				<h1><a href="">《华为帐号服务条款、华为隐私政策》</a></h1>
				<h2>Copyright © 2011-2015  华为软件技术有限公司  版权所有  保留一切权利  苏B2-20070200号 | 苏ICP备09062682号-9</h2>
			</div>
		</div>
	<!--底部-->
	</body>
</html>
